/**
 * @author liuxin
 * @e-mail lxtobe5@gmail.com
 * @update 2011.11.19
 * @prompt If you find my mistake, please contact with me via my e-mail.
 */
package API_sample
{
	import com.display.GraphicsBase;
	import com.display.draw.Circle;
	import com.display.draw.RoundRectangle;
	
	import flash.display.BitmapData;
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.display.Stage;
	
	public class DisplayObject_sample extends Sprite
	{
		public function DisplayObject_sample()
		{
			var c:Circle = new Circle();
			var r:RoundRectangle = new RoundRectangle();
			var s:Sprite = new Sprite();
			var o:Object = new Object();
			var sh:Shape = new Shape();
			
			c.addObject(s);
			c.fill(0x000000);
			c.line(1);
			c.draw(100);
			addChild(s);
			
			var p:Sprite = new Sprite();
			c.addObject(p);
			c.fill(0x00ff00);
			c.line(2);
			c.draw(50);
			addChild(p);
			p.x = 100;
			p.y = 100;
			
			r.addObject(p);
			r.fill(0x442211);
			r.line(0);
			r.draw(100,100,10,10);
			
		}
	}
}